package com.kingdee.eas.minghua.material.client;

import java.awt.event.ActionEvent;

import com.kingdee.eas.minghua.material.fpzf.client.ClsrzbfpxxDocEditUI;

public class ClcghtDocListUIPIEx extends  ClcghtDocListUI{

	public ClcghtDocListUIPIEx() throws Exception {
		super();
	}
	
    public void actoinViewSignature_actionPerformed(ActionEvent e) throws Exception
    {
    }
    String clcghtid = null;
    protected void tblMain_tableClicked(com.kingdee.bos.ctrl.kdf.table.event.KDTMouseEvent e) throws Exception
    {
    	if(this.getUIContext().get("UI")!=null)
    	{
			if(e.getClickCount()==2)
	    	{
    			int curRow = tblMain.getSelectManager().getActiveRowIndex();
		    	String clcghtid = null;
		    	if(tblMain.getRow(curRow).getCell("id").getValue()!=null)
		    		clcghtid = tblMain.getRow(curRow).getCell("id").getValue().toString();
	    		ClsrzbDocNewEditUI clsrzbDocNewEditUI = (ClsrzbDocNewEditUI)this.getUIContext().get("UI");
		    	clsrzbDocNewEditUI.handlCRGeResult(clcghtid);
		    	uiWindow.close();
	    	}
    	}
    	if(this.getUIContext().get("CLSRZBFPUI")!=null)
    	{
    		if(e.getClickCount()==2)
    		{
    			int curRow = tblMain.getSelectManager().getActiveRowIndex();
    			String clcghtid = null;
    			if(tblMain.getRow(curRow).getCell("id").getValue()!=null)
    				clcghtid = tblMain.getRow(curRow).getCell("id").getValue().toString();
    			ClsrzbfpxxDocEditUI fpui = (ClsrzbfpxxDocEditUI)this.getUIContext().get("CLSRZBFPUI");
    			fpui.handlCRGeResult(clcghtid);
    			uiWindow.close();
    		}
    	}
		else
		{
			super.tblMain_tableClicked(e);
		}
    }
    
    public void actionView_actionPerformed(ActionEvent e) throws Exception
    {
    	super.actionView_actionPerformed(e);
    }

}
